package com.lsj.spring.mapper;

import com.lsj.spring.model.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author Lsj
 * @version 1.0
 * @date 2021/6/25 10:45
 */
@Mapper
public interface UserMapper{
    /**
     * 根据id查询
     * @param id id
     * @return 用户信息
     */
    User selectById(int id);

    /**
     * 插入数据
     * @param user 用户
     * @return 插入成功了几句
     */
    int insert(User user);
}
